﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LayoutPlanning.Model
{
    [Serializable]
    public enum GripTypes
    {
        Power,
        Normal
    }

    [Serializable]
    public class GripPointModel : ObservableDragableObject
    {
        private GripTypes _gripType;

        private string _name;


        public GripPointModel(string name, Point point, int angle) : this()
        {
            _name = name;
            Position = point;
            Angle = angle;
        }

        public GripPointModel()
        {
            _name = "Default";
            Position = new Point();
        }


        public string Name
        {
            get { return _name; }
            set
            {
                _name = value;
                RaisePropertyChanged();
            }
        }


        public GripTypes GripType
        {
            get { return _gripType; }
            set
            {
                _gripType = value;
                RaisePropertyChanged();
            }
        }
    }
}